describe('practice-6-6', function () {

    it("应该让那几个人去完成这项任务？", function () {
        var arr_result = get_who_to_complete_task();
        var count_A = 0;
        var count_B = 0;
        var count_D = 0;
        var count_C = 0;
        var count_E = 0;
        var count_F = 0;
        for(var i = 0;i < arr_result.length; i ++)
        {
            if(arr_result[i] == 'A')
            {
                count_A ++;
            }
            if(arr_result[i]=='B')
            {
                count_B ++;
            }
            if(arr_result[i]=='D')
            {
                count_D ++;
            }
            if(arr_result[i]=='C')
            {
                count_C ++;
            }
            if(arr_result[i]=='E')
            {
                count_E ++;
            }
            if(arr_result[i] == 'F')
            {
                count_F ++;
            }
        }
        expect(count_A===1||count_B===1).toBe(true);
        expect(count_A===1&&count_D===1).toBe(false);
        expect(count_A+count_E+count_F).toBe(2);
        expect((count_C===1&&count_B===1)||(count_B===0&&count_C===0)).toBe(true);
        expect(count_C !== count_D).toBe(true);
        if(count_D === 0)
        {
            expect(count_E).toBe(0);
        }
        expect(arr_result.length).toBe(4);
        expect(count_A).toBe(1);
        expect(count_B).toBe(1);
        expect(count_C).toBe(1);
        expect(count_D).toBe(0);
        expect(count_E).toBe(0);
        expect(count_F).toBe(1);
    });
});
